<template>
  <!--  v-if="config" -->
  <div class="action-module" v-if="config">
    <div class="tab-box">
      <div class="action-list" v-if="actionsConf">
        <!-- 删除 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.delete) ? false : actionsConf.delete
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforedeleting')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforedeleting')
            }}</span
          >
          <o-m2o-selector
            v-model="config.beforeDelete"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :isFunLayout="false"
            :filter="eventFilter"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.delete) ? false : actionsConf.delete
          "
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.afterdeleting')"
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.afterdeleting') }}
          </span>
          <o-m2o-selector
            v-model="config.afterDelete"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            tField="f_name"
            vField="f_name"
            :isFunLayout="false"
            :filter="eventFilter"
          ></o-m2o-selector
        ></span>
        <!-- 修改 -->
        <span
          v-if="$srv.utils.noValue(actionsConf.edit) ? false : actionsConf.edit"
        >
          <span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.beforeediting')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeediting')
            }}</span
          >
          <o-m2o-selector
            v-model="config.beforeEdit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :isFunLayout="false"
            :filter="eventFilter"
          ></o-m2o-selector
        ></span>
        <span
          v-if="$srv.utils.noValue(actionsConf.edit) ? false : actionsConf.edit"
        >
          <span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.afterediting')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterediting')
            }}</span
          >
          <o-m2o-selector
            v-model="config.afterEdit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :isFunLayout="false"
            :filter="eventFilter"
          ></o-m2o-selector
        ></span>
        <!-- 新增1 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.insert) ? false : actionsConf.insert
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeinserting')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeinserting')
            }}</span
          >
          <o-m2o-selector
            v-model="config.beforeInsert"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :isFunLayout="false"
            :filter="eventFilter"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.insert) ? false : actionsConf.insert
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterinserting')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterinserting')
            }}</span
          >
          <o-m2o-selector
            v-model="config.afterInsert"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :isFunLayout="false"
            :filter="eventFilter"
          ></o-m2o-selector
        ></span>
        <!-- 保存////归纳-增删改 -->
        <!-- <span
          v-if="$srv.utils.noValue(actionsConf.save) ? false : actionsConf.save"
          >{{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforesaving') }}:
          <o-m2o-selector
            v-model="config.beforeSave"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span> -->
        <!-- <span
          v-if="$srv.utils.noValue(actionsConf.save) ? false : actionsConf.save"
          >{{ $srv.getI18nByPath('piece.oQueryLinkSetting.aftersaving') }}:
          <o-m2o-selector
            v-model="config.afterSave"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span> -->
        <!-- 审核 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.audit) ? false : actionsConf.audit
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeauditing')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeauditing')
            }}</span
          >
          <o-m2o-selector
            v-model="config.beforeAudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.audit) ? false : actionsConf.audit
          "
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.afterauditing')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterauditing')
            }}</span
          >
          <o-m2o-selector
            v-model="config.afterAudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <!-- 取消审核 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.unaudit)
              ? false
              : actionsConf.unaudit
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeunauditing')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeunauditing')
            }}</span
          >
          <o-m2o-selector
            v-model="config.beforeUnaudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.unaudit)
              ? false
              : actionsConf.unaudit
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterunauditing')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterunauditing')
            }}</span
          >
          <o-m2o-selector
            v-model="config.afterUnaudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <!-- 反审核 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.antiAudit)
              ? false
              : actionsConf.antiAudit
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeantiauditing')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeantiauditing')
            }}
          </span>
          <o-m2o-selector
            v-model="config.beforeAntiaudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.antiAudit)
              ? false
              : actionsConf.antiAudit
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterantiauditing')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterantiauditing')
            }}
          </span>
          <o-m2o-selector
            v-model="config.afterAntiaudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 审批 examine -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf['requestAudit'])
              ? false
              : actionsConf['requestAudit']
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeexamining')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforeexamining') }}
          </span>
          <o-m2o-selector
            v-model="config.beforeApprove"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf['requestAudit'])
              ? false
              : actionsConf['requestAudit']
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterexamining')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.afterexamining') }}
          </span>
          <o-m2o-selector
            v-model="config.afterApprove"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 送审 requestAudit -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf['requestAudit'])
              ? false
              : actionsConf['requestAudit']
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforesendauditing')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforesendauditing')
            }}
          </span>
          <o-m2o-selector
            v-model="config.beforeRequestAudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf['requestAudit'])
              ? false
              : actionsConf['requestAudit']
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.aftersendauditing')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.aftersendauditing')
            }}
          </span>
          <o-m2o-selector
            v-model="config.afterRequestAudit"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 撤销审批 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.revokeApproval)
              ? false
              : actionsConf.revokeApproval
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeRevokeApproval')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeRevokeApproval')
            }}
          </span>
          <o-m2o-selector
            v-model="config.beforeRevokeApproval"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.revokeApproval)
              ? false
              : actionsConf.revokeApproval
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterRevokeApproval')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterRevokeApproval')
            }}
          </span>
          <o-m2o-selector
            v-model="config.afterRevokeApproval"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 过账 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.accountPosted)
              ? false
              : actionsConf.accountPosted
          "
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.beforeposting')"
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforeposting') }}
          </span>
          <o-m2o-selector
            v-model="config.beforeAccountPosted"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.accountPosted)
              ? false
              : actionsConf.accountPosted
          "
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.afterposting')"
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.afterposting') }}
          </span>
          <o-m2o-selector
            v-model="config.afterAccountPosted"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 取消过账 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.cancelPost)
              ? false
              : actionsConf.cancelPost
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforecancelposting')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforecancelposting')
            }}
          </span>
          <o-m2o-selector
            v-model="config.beforeCancelPost"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.cancelPost)
              ? false
              : actionsConf.cancelPost
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.aftercancelposting')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.aftercancelposting')
            }}
          </span>
          <o-m2o-selector
            v-model="config.afterCancelPost"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 结案 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.caseclosed)
              ? false
              : actionsConf.caseclosed
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforecaseclosed')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforecaseclosed') }}
          </span>
          <o-m2o-selector
            v-model="config.beforeCaseclosed"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.caseclosed)
              ? false
              : actionsConf.caseclosed
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterantiauditing')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterantiauditing')
            }}
          </span>
          <o-m2o-selector
            v-model="config.afterCaseclosed"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 反结案 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.anticlosing)
              ? false
              : actionsConf.anticlosing
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeanticlosing')
            "
          >
            {{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeanticlosing')
            }}
          </span>
          <o-m2o-selector
            v-model="config.beforeAnticlosing"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.anticlosing)
              ? false
              : actionsConf.anticlosing
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afteranticlosing')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.afteranticlosing') }}
          </span>
          <o-m2o-selector
            v-model="config.afterAnticlosing"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 冻结 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.freeze) ? false : actionsConf.freeze
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforefreezing')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforefreezing') }}
          </span>
          <o-m2o-selector
            v-model="config.beforeFreeze"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.freeze) ? false : actionsConf.freeze
          "
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.afterfreezing')"
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.afterfreezing') }}
          </span>
          <o-m2o-selector
            v-model="config.afterFreeze"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 取消冻结 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.unfreeze)
              ? false
              : actionsConf.unfreeze
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforeunfreezing')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforeunfreezing') }}
          </span>
          <o-m2o-selector
            v-model="config.beforeUnfreeze"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.unfreeze)
              ? false
              : actionsConf.unfreeze
          "
          ><span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterunfreezing')
            "
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.afterunfreezing') }}
          </span>
          <o-m2o-selector
            v-model="config.afterUnfreeze"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 作废 -->
        <span
          v-if="$srv.utils.noValue(actionsConf.void) ? false : actionsConf.void"
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.beforevoid')"
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.beforevoid') }}
          </span>
          <o-m2o-selector
            v-model="config.beforeVoid"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <span
          v-if="$srv.utils.noValue(actionsConf.void) ? false : actionsConf.void"
          ><span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.aftervoid')"
          >
            {{ $srv.getI18nByPath('piece.oQueryLinkSetting.aftervoid') }}
          </span>
          <o-m2o-selector
            v-model="config.afterVoid"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.storedprocedure')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
            :dropdown="true"
          ></o-m2o-selector
        ></span>
        <!-- 刷新 -->
        <span
          v-if="
            $srv.utils.noValue(actionsConf.refresh)
              ? false
              : actionsConf.refresh
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforerefreshing')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.beforerefreshing')
            }}</span
          >
          <o-m2o-selector
            v-model="config.beforeRefresh"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span
          v-if="
            $srv.utils.noValue(actionsConf.refresh)
              ? false
              : actionsConf.refresh
          "
        >
          <span
            :title="
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterrefreshing')
            "
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.afterrefreshing')
            }}</span
          >
          <o-m2o-selector
            v-model="config.afterRefresh"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span v-if="$srv.getx(addonActions, 'openFun', false)">
          <span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.openfunction')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.openfunction')
            }}</span
          >
          <o-m2o-selector
            v-model="config.openFun"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span v-if="$srv.getx(addonActions, 'closeFun', false)">
          <span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.closefunction')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.closefunction')
            }}</span
          >
          <o-m2o-selector
            v-model="config.closeFun"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span v-if="$srv.getx(addonActions, 'rowSelected', false)">
          <span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.rowselection')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.rowselection')
            }}</span
          >
          <o-m2o-selector
            v-model="config.rowSelected"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
        <span v-if="$srv.getx(addonActions, 'searchFilter', false)">
          <span
            :title="$srv.getI18nByPath('piece.oQueryLinkSetting.searchFilter')"
            >{{
              $srv.getI18nByPath('piece.oQueryLinkSetting.searchFilter')
            }}</span
          >
          <o-m2o-selector
            v-model="config.searchFilter"
            :placeholder="
              $srv.getI18nByPath('piece.oQueryLinkSetting.commoneventlibrary')
            "
            @on-dochange="saveDetailToConfig"
            :tTable="$srv.globalVar.tableName.PUB_API"
            :tField="$srv.globalVar.fieldName.pubApiName"
            :vField="$srv.globalVar.fieldName.pubApiName"
          ></o-m2o-selector
        ></span>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { T_srv, ts, Tsrv } from '@/services';
import { Component, Model, Vue } from 'vue-property-decorator';

@Component
export default class oActionListSetting extends Vue {
  @Model('modelchange') config: any;

  @T_srv.prop({ required: false, default: null }) actionsConf: any;

  @T_srv.prop({ required: false, default: null }) addonActions: object;

  private itemList: any = [];

  private eventFilter: any = new ts.T_filter();

  created() {
    this.eventFilter.filter = { f_type: { $in: [0, 1, 4] } };
  }

  mounted() {}

  private saveDetailToConfig() {
    this.$emit('modelchange', this.config);
    this.$emit('change');
  }

  // 获取存储过程（当存储过程被换到 字段附加列表属性中时 ———— i需改 id【存储过程的列表id】）
  private getItemConfig() {
    const id = '400202545336680448';
    const lang = this.$i18n.locale || 'en-US';
    const dbType = 'mysql';
    Tsrv.getSLCData(id, dbType, lang).then(r => {
      const [b, res, msg] = r;
      !b && msg && this.$msg(msg);
      this.itemList = res;
    });
  }
}
</script>

<style scoped lang="scss">
.action-module {
  .action-list {
    display: flex;
    flex-direction: column;
    > span {
      display: flex;
      line-height: 30px;
      margin-bottom: 10px;
      // width: 100px;
      > span {
        width: 60px;
        text-align: right;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        &::after {
          content: '：';
        }
      }
      > div {
        flex-grow: 1;
        margin-left: 10px;
      }
      > div {
        flex-grow: 1;
        margin-left: 10px;
      }
    }
  }
}
</style>
